package com.baitiaojun.video.service;

import com.baitiaojun.api.exception.ConditionException;
import com.baitiaojun.api.vo.LikeCoinOperatedCollectedInfo;

import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeoutException;

/**
 * @类名 VideoCoinService
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2022/12/25 16:42
 * @版本 1.0
 */
public interface VideoCoinService {

    void addVideoCoin(Long userId, Long videoId, Integer coinOperated, String token) throws ConditionException, InterruptedException;

    LikeCoinOperatedCollectedInfo getVideoCoin(Long videoId, Long userId);

    Integer getVideoCoinCount(Long videoId);
}
